package design.simdi.code.final_paper.utils;

import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.WebComponent;
import org.apache.wicket.model.IModel;

/**
 * 
 * @author Marius Dumitriu - (Jun 19, 2010 - 9:02:22 PM)
 * 
 */
public class StaticImage extends WebComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public StaticImage(String id, IModel<String> model) {
		super(id, model);
	}

	protected void onComponentTag(ComponentTag tag) {
		super.onComponentTag(tag);
		checkComponentTag(tag, "img");
		tag.put("src", getDefaultModelObjectAsString());

	}

}
